<?php

namespace App\Http\Requests\Api;

class ResumeRefreshInfoRequest extends ApiRequest
{
    public function rules()
    {
        return [
            'mobile'=>'bail|required|mobile_verification',
            'job_status' => 'bail|required|integer|between:1,4',
        ];
    }

    public function attributes()
    {
        return [
            'mobile' => '手机号',
            'job_status' => '求职状态',
        ];
    }

    public function messages()
    {
        return array_merge(parent::messages(), [
            'mobile.mobile_verification'=>'请输入正确的手机号码',
        ]);
    }
}
